package slu.appli.command.impl;

import slu.appli.command.CommandInterface;


public class CommandManager {
	private static final CommandRunner<CommandInterface> runner;
	
	static {
		runner = new CommandRunner<CommandInterface>();
		runner.start();
	}
	
	public static void postAction(CommandInterface command) {
		runner.postCommand(command);
	}
	
	public static boolean isCommandManagerThread() {
		return Thread.currentThread().equals(runner);
	}
	
}
